import request from '@/utils/request'

// 查询保函列表
export function listGuaranteeInfo(query) {
  return request({
    url: '/basic/guaranteeInfo/list',
    method: 'get',
    params: query
  })
}

// 查询保函详细
export function getGuaranteeInfo(guaWorkId) {
  return request({
    url: '/basic/guaranteeInfo/' + guaWorkId,
    method: 'get'
  })
}

// 新增保函
export function addGuaranteeInfo(data) {
  return request({
    url: '/basic/guaranteeInfo',
    method: 'post',
    data: data
  })
}

// 修改保函
export function updateGuaranteeInfo(data) {
  return request({
    url: '/basic/guaranteeInfo',
    method: 'put',
    data: data
  })
}

// 删除保函
export function delGuaranteeInfo(guaWorkId) {
  return request({
    url: '/basic/guaranteeInfo/' + guaWorkId,
    method: 'delete'
  })
}

// 导出保函
export function exportGuaranteeInfo(query) {
  return request({
    url: '/basic/guaranteeInfo/export',
    method: 'get',
    params: query
  })
}
